<?php

namespace App\Admin\Controllers;

use Encore\Admin\Grid;
use Encore\Admin\Grid\Displayers\Actions;

class RoleController extends \Encore\Admin\Controllers\RoleController
{
    protected function grid(): Grid
    {
        $grid = parent::grid();
        $grid->actions(function (Actions $action) {
            $action->disableView(false);
            $action->disableEdit(false);
            $action->disableDelete();
        });
        $grid->disableActions(false);
        $grid->disableCreateButton(false);
        return $grid;
    }
}
